#ifndef VIRTUALKEY_H
#define VIRTUALKEY_H


class VirtualKey
{
public:
    VirtualKey();
    ~VirtualKey();
    void moveMouse(int x,int y);
    void absMouse(int absx,int absy);
    void keyPress(int code);
    void keyRelease(int code);
    void button(int code);
    bool isDev();
private:
    int uinputFd;
    void toemit(int fd,int type,int code,int val);
protected:
    void initFd();
    void closeFd();
};

#endif // VIRTUALKEY_H
